package me.zhengjie.modules.website.service;

import me.zhengjie.modules.website.domain.CmInfos;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import me.zhengjie.modules.website.domain.PageResult;

import java.util.List;

/**
 * @author system
 * @since 2025-01-14 17:56:04
 */
public interface  CmInfosService {

    PageResult<CmInfos> findPage(CmInfos params, Pageable pageable);

    List<CmInfos> findList(CmInfos params);

    CmInfos findById(Long id);

    CmInfos insert(CmInfos cmInfos);

    CmInfos update(CmInfos cmInfos);

    void delete(Long id);

    Page<CmInfos> search(String infoTitle, String infoType, Pageable pageable);
}
